home *** CD-ROM | disk | FTP | other *** search
- Path: newsfeeds.ans.net!interaccess!usenet
- From: brianmcg@interaccess.com (Brian V. McGroarty)
- Newsgroups: comp.lang.c
- Subject: Re: QUESTION ABOUT FILES IN C
- Date: 20 Mar 1996 14:18:45 GMT
- Organization: Internet Squire
- Message-ID: <4ip445$g6h@nntp.interaccess.com>
- References: <4inhea$ap4@helios.canaldinamic.es>
- Reply-To: brianmcg@interaccess.com
- NNTP-Posting-Host: d41-isdn.nhe.interaccess.com
- X-Newsreader: Internet Squire 1.20
-
- In C you would create a structure such as:
-
- struct pau
- {
- int uno;
- char dos[ 256 ];
- }
-
- The structure above would then be read and written with fread and fwrite,
- specifying "sizeof(struct pau)" as the item size.
-
-
-
-
- Pau Vallbona Rigo wrote:
- >I have a problem with files in c
- >In pascal i can make this:
- >example:
-
- >pau=record
- >uno:integr;
- >dos:string[];
- >end;
- >var
- >pero:file of pau;
- >....
-
- >How can i define a file like this?
-
-
-
- ---
- Brian Valters McGroarty -- brianmcg@bix.com
- phone/fax (847) 439-7714
-
-
-
-
-
-